package com.example.mygame;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class fsActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fs);
        Intent intent = getIntent();
        String data=intent.getStringExtra("WQ");
        TextView tv = findViewById(R.id.tv);
        tv.setText("你选择了"+ data+",请前往救出公主");
        Button bt1=findViewById(R.id.bt1);
        bt1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(fsActivity.this,zdActivity.class);
                startActivity(intent);

            }
        });

    }
}
